package com.quiz.bis.domain.model;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 题型配置
 * @author ahuan
 */
@Data
public class QuestionTypeConfig {
    @NotNull(message = "题型ID不能为空")
    private Long typeId;

    @NotBlank(message = "题型名称不能为空")
    private String name;

    @NotNull(message = "题目数量不能为空")
    private Integer count;

    @NotNull(message = "每题分值不能为空")
    private BigDecimal score;
}
